package br.infotec.deptmusica.manegerbean;

import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import br.infotec.deptmusica.diasemana.DiaSemana;
import br.infotec.deptmusica.diasemana.DiaSemanaBO;

@ManagedBean
@RequestScoped
public class TesteManegerBean {

	private List<DiaSemana> diasSemana;

	public List<DiaSemana> getDiasSemana() {
		DiaSemanaBO diaSemanaBO = new DiaSemanaBO();
		setDiasSemana(diaSemanaBO.lista());
		for (DiaSemana	dia : diasSemana) {
			System.out.println(dia.getDiaSemana());
		}
		return this.diasSemana;
	}

	public void setDiasSemana(List<DiaSemana> diasSemana) {
		this.diasSemana = diasSemana;
	}
}
